﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using ERP_RORZE_DLL.Product.DAO;

namespace ERP_RORZE.Product.PartData
{
    public partial class ctrlPartList : DevExpress.XtraEditors.XtraUserControl
    {
        ClsPartDataDAO clspartDAO = new ClsPartDataDAO();
        DataTable dt;
        public ctrlPartList()
        {
            InitializeComponent();
        }

        private void btnReload_Click(object sender, EventArgs e)
        {
            Re_load(sender, e);
        }
        void Re_load(object sender, EventArgs e)
        {
            dt = clspartDAO.GetAllPartID();
            dvgPartList.DataSource = dt;
        }
        private void dvgPartList_Load(object sender, EventArgs e)
        {
            Re_load(sender, e);
        }

        private void btnRefresh_Click(object sender, EventArgs e)
        {
            Re_load(sender, e);
        }
    }
}
